//
//  HWQQGameShareView.swift
//  HWanGame
//
//  Created by 王昌健 on 2023/6/12.
//  Copyright © 2023 94Wan. All rights reserved.
//

import UIKit

class HWQQGameShareView: UIView {
    var cancelButton:UIButton!
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        initUI()
        
        initFrame()
        
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}

extension HWQQGameShareView {
    private func initUI() -> Void {
        self.snp.makeConstraints { make in
            make.left.right.top.equalToSuperview()
            make.height.equalTo(screenHeight)
        }
        cancelButton = UIButton(type: .custom)
        cancelButton.setTitle("取消", for: .normal)
        addSubview(cancelButton)
    }
    
    private func initFrame() -> Void {
        cancelButton.snp.makeConstraints { make in
            make.left.equalTo(10*widthScale)
            make.top.equalTo(44*widthScale)
        }
    }
}
